package com.jlg.beans.page;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 经过解析的网页
 * @author huazhang
 * @since 2011-03-26
 */
public class Article
{
    private Integer id;
    private String url;
    private String urlMd5;
    private String seedUrl; 
    private String subject; 
    private String title; 
    private String titleMd5;
    private String bodyTextMd5;
    private Date publishTime; 
    private Date recordTime; 
    private String format; // 文件类型
    private String keywords; // 文章关键词
    private String description; // 文章摘要
    private char isIndexed; // 文章是否被索引
    private Outlink[] devidePageUrls; // 分页URLs
    private Outlink[] picUrls; // 图片URLs
    private Outlink[] appdendixUrls; // 附件URLs

    private Integer taskId; 
    private String htmlContent;    // 带标签的正文。不带标签的正文通过StringUtil.removeAllTags(value) 实时生成
    private String textContent;    // 不带标签的正文
    private Appendix[] appendixs;  //图片及多媒体
    private List<Attr> attrs = new ArrayList<Attr>(); //除标题、正文、时间三个基本元数据以外的所有元数据
    private String encoding;

    public Outlink[] getPicUrls()
    {
        return picUrls;
    }

    public void setPicUrls(Outlink[] picUrls)
    {
        this.picUrls = picUrls;
    }

    public Outlink[] getAppdendixUrls()
    {
        return appdendixUrls;
    }

    public void setAppdendixUrls(Outlink[] appdendixUrls)
    {
        this.appdendixUrls = appdendixUrls;
    }

    public Integer getId()
    {
        return id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public String getUrl()
    {
        return url;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrlMd5()
    {
        return urlMd5;
    }

    public void setUrlMd5(String urlMd5)
    {
        this.urlMd5 = urlMd5;
    }

    public String getSeedUrl()
    {
        return seedUrl;
    }

    public void setSeedUrl(String seedUrl)
    {
        this.seedUrl = seedUrl;
    }

    public String getHtmlContent()
    {
        return htmlContent;
    }

    public void setHtmlContent(String htmlContent)
    {
        this.htmlContent = htmlContent;
    }

    public String getTextContent()
    {
        return textContent;
    }

    public void setTextContent(String textContent)
    {
        this.textContent = textContent;
    }

    public String getSubject()
    {
        return subject;
    }

    public void setSubject(String subject)
    {
        this.subject = subject;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitleMd5()
    {
        return titleMd5;
    }

    public void setTitleMd5(String titleMd5)
    {
        this.titleMd5 = titleMd5;
    }

    public String getBodyTextMd5()
    {
        return bodyTextMd5;
    }

    public void setBodyTextMd5(String bodyTextMd5)
    {
        this.bodyTextMd5 = bodyTextMd5;
    }

    public Date getPublishTime()
    {
        return publishTime;
    }

    public void setPublishTime(Date publishTime)
    {
        this.publishTime = publishTime;
    }
   
    public Date getRecordTime()
    {
        return recordTime;
    }

    public void setRecordTime(Date recordTime)
    {
        this.recordTime = recordTime;
    }

    public String getKeywords()
    {
        return keywords;
    }

    public void setKeywords(String keywords)
    {
        this.keywords = keywords;
    }

   

    public String getFormat()
    {
        return format;
    }

    public void setFormat(String format)
    {
        this.format = format;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public char getIsIndexed()
    {
        return isIndexed;
    }

    public void setIsIndexed(char isIndexed)
    {
        this.isIndexed = isIndexed;
    }

    public Outlink[] getDevidePageUrls()
    {
        return devidePageUrls;
    }

    public void setDevidePageUrls(Outlink[] devidePageUrls)
    {
        this.devidePageUrls = devidePageUrls;
    }

    public Integer getTaskId()
    {
        return taskId;
    }

    public void setTaskId(Integer taskId)
    {
        this.taskId = taskId;
    }

   

    public Appendix[] getAppendixs()
    {
        return appendixs;
    }

    public void setAppendixs(Appendix[] appendixs)
    {
        this.appendixs = appendixs;
    }

    public List<Attr> getAttrs()
    {
        return attrs;
    }

    public void setAttrs(List<Attr> attrs)
    {
        this.attrs = attrs;
    }

    public String getEncoding()
    {
        return encoding;
    }

    public void setEncoding(String encoding)
    {
        this.encoding = encoding;
    }
 
}
